package com.hzncc.flowable_diboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.entity.BaseModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotNull;

/**
* 钉钉应用凭证配置 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-08-28
* Copyright © MyCorp
*/

@TableName("mdl_ding_app_config")
@Getter @Setter @Accessors(chain = true)
public class DingAppConfig extends BaseModel {
    private static final long serialVersionUID = 1815229931282182537L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * appKey
     */
    @Length(max=100, message="appKey长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String appKey;

    /**
     * appSecret
     */
    @Length(max=100, message="appSecret长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String appSecret;

    /**
     * agent
     */
    @Length(max=100, message="agent长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String agent;

    /**
     * robotCode
     */
    @Length(max=100, message="robotCode长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String robotCode;

    /**
     * groupTemplateId
     */
    @Length(max=100, message="groupTemplateId长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String groupTemplateId;

    /**
     * groupRobotCode
     */
    @Length(max=100, message="groupRobotCode长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String groupRobotCode;

    /**
     * 租户id
     */
    @TableField()
    private String tenant;

    /**
     * 小程序appkey
     */
    @TableField
    private String mAppKey;

    /**
     * 小程序appsecret
     */
    @TableField
    private String mAppSecret;

}